SET QUOTED_IDENTIFIER ON
GO
SET ANSI_NULLS ON
GO
CREATE VIEW dbo.vw_pofpaquete
AS
SELECT     *
FROM         dbo.vw_POFPaquetes
WHERE     ((SELECT     Modo
                         FROM         vw_UsuarioModo) = 1) OR
                          ((SELECT     Modo
                              FROM         vw_UsuarioModo) = 2) AND (CUISE =
                          (SELECT     Cuise
                            FROM          vw_UsuarioCuise))
GO
GRANT SELECT ON  [dbo].[vw_POFPaquete] TO [SoloVer]
GO
